package com.sikao.app.bean;

import java.util.List;

/**
 * Created by Sun on 2016/8/9.
 * 	[36]商品分类属性
 */
public class CategoryAttrBeanBack {
    /**
     * status : 1
     * msg : 成功进行操作
     * res : [{"id":"1","name":"包装方式","attr_type":"1","attr_values":[{"id":0,"value":"散装"}],"default_value":[{"id":0,"value":"散装"}],"is_filter":"0","status":"0"},{"id":"2","name":"含水量","attr_type":"3","attr_values":[{"id":0,"value":"5%"},{"id":1,"value":"7%"},{"id":2,"value":"10%"},{"id":3,"value":"15%"},{"id":4,"value":"20%"}],"default_value":[{"id":1,"value":"7%"}],"is_filter":"0","status":"0"},{"id":"3","name":"煤燃烧值","attr_type":"3","attr_values":[{"id":0,"value":"10000大卡"},{"id":1,"value":"7000大卡"},{"id":2,"value":"5000大卡"},{"id":3,"value":"3000大卡"},{"id":4,"value":"1000大卡"}],"default_value":[{"id":2,"value":"5000大卡"}],"is_filter":"0","status":"0"},{"id":"7","name":"多选测试","attr_type":"4","attr_values":[{"id":0,"value":"多选测试1"},{"id":1,"value":"多选测试2"},{"id":2,"value":"多选测试3"}],"default_value":[{"id":0,"value":"多选测试1"},{"id":1,"value":"多选测试2"}],"is_filter":"0","status":"0"},{"id":"8","name":"下拉测试","attr_type":"5","attr_values":[{"id":0,"value":"下拉测试1"},{"id":1,"value":"下拉测试2"},{"id":2,"value":"下拉测试3"}],"default_value":[{"id":2,"value":"下拉测试3"}],"is_filter":"0","status":"0"}]
     */

    private int status;
    private String msg;
    /**
     * id : 1
     * name : 包装方式
     * attr_type : 1
     * attr_values : [{"id":0,"value":"散装"}]
     * default_value : [{"id":0,"value":"散装"}]
     * is_filter : 0
     * status : 0
     */

    private List<ResBean> res;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<ResBean> getRes() {
        return res;
    }

    public void setRes(List<ResBean> res) {
        this.res = res;
    }

    public static class ResBean {
        private String id;
        private String name;
        private String attr_type;
        private String is_filter;
        private String status;
        private String content;

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        /**
         * id : 0
         * value : 散装
         */

        private List<AttrValuesBean> attr_values;
        /**
         * id : 0
         * value : 散装
         */

        private List<DefaultValueBean> default_value;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAttr_type() {
            return attr_type;
        }

        public void setAttr_type(String attr_type) {
            this.attr_type = attr_type;
        }

        public String getIs_filter() {
            return is_filter;
        }

        public void setIs_filter(String is_filter) {
            this.is_filter = is_filter;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public List<AttrValuesBean> getAttr_values() {
            return attr_values;
        }

        public void setAttr_values(List<AttrValuesBean> attr_values) {
            this.attr_values = attr_values;
        }

        public List<DefaultValueBean> getDefault_value() {
            return default_value;
        }

        public void setDefault_value(List<DefaultValueBean> default_value) {
            this.default_value = default_value;
        }

        public static class AttrValuesBean {
            private int id;
            private String value;
            private String changePrice="0";
            private boolean isChecked=false;//默认没有选择

            public String getChangePrice() {
                return changePrice;
            }

            public void setChangePrice(String changePrice) {
                this.changePrice = changePrice;
            }

            public boolean isChecked() {
                return isChecked;
            }

            public void setChecked(boolean checked) {
                isChecked = checked;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }
        }

        public static class DefaultValueBean {
            private int id;
            private String value;
            private String changePrice="0";

            public String getChangePrice() {
                return changePrice;
            }

            public void setChangePrice(String changePrice) {
                this.changePrice = changePrice;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }
        }
    }
}
